
package com.scalar.chiptrack.operations.process.forms;

import org.apache.struts.upload.FormFile;
import com.scalar.chiptrack.ChipTrackActionForm;

public class MarkAndPackForm extends ChipTrackActionForm {
    
    private int m_baseProductId = -1;
    private int m_previousStepId = -1;
    private String m_productName = null;
    private int m_trackId = -1;
    private String m_stepName = null;
    private String m_previousStepName = null;
    
    private double m_targetyield = 0.0;
    private double m_lotScrapYieldLimit = 0.0;
    private String m_poFrequency = null;
    private String m_comments = null;
    private double m_standardUnitCost = 0.0;
    private String m_procedureDocNumber = null;
    private FormFile m_procedureDocFile = null;  
    private String m_procedureDocFileName = null;  
    private String m_visualSystem = null;
    private String m_markingDiagramNumber = null;
    private FormFile m_markingDiagramFile = null;
    private String m_markingDiagramFileName = null;
    private String m_packingMethod = null;
    private int m_processStepId = -1;
	private String [] dupProductName = new String[0];

     // added by hareesh on 1st September 2003
    private String m_oldProductName = null;

    public MarkAndPackForm() {
    }
    
    public MarkAndPackForm (float standardUnitCost,
                              String poFrequency,
                              float targetYield,
                              float lotScrapYieldLimit,
                              String visualSystem,
                              String packingMethod,
                              String procedureDocNumber,
                              String procedureDocFileName,                                          
                              String markingDiagramNumber,
                              String markingDiagramFileName,
                              String productName,
                              int baseProductId,
                              String stepName, 
                              String comments,
                              int previousStepId) {
                                  
        m_standardUnitCost = standardUnitCost;
        m_poFrequency = poFrequency;
        m_targetyield = targetYield;
        m_lotScrapYieldLimit = lotScrapYieldLimit;
        m_visualSystem = visualSystem;
        m_packingMethod = packingMethod;
        m_procedureDocNumber = procedureDocNumber;
        m_procedureDocFileName = procedureDocFileName;
        m_markingDiagramNumber = markingDiagramNumber;
        m_markingDiagramFileName = markingDiagramFileName;
        m_productName = productName;
        m_baseProductId = baseProductId;
        m_stepName = stepName;
        m_comments = comments;
        m_previousStepId = previousStepId;

        // added by hareesh on 1st September 2003
        this.m_oldProductName = this.m_productName;
    }
    
        
    public int getProcessStepId() {
        return m_processStepId;
    }
    public void setProcessStepId (int processStepId) {
        m_processStepId = processStepId;
    }
    
    public String getPreviousStepName() {
        return m_previousStepName;
    }
    public void setPreviousStepName (String previousStepName) {
        m_previousStepName = previousStepName;
    }
    
    public String getStepName() {
        return m_stepName;
    }
    public void setStepName (String stepName) {
        m_stepName = stepName;
    }
    
    public int getTrackId() {
        return m_trackId;
    }
    public void setTrackId (int trackId) {
        m_trackId = trackId;
    }
    
    public int getBaseProductId() {
        return m_baseProductId;
    }
    public void setBaseProductId (int baseProductId) {
        m_baseProductId = baseProductId;
    }    
    
    public int getPreviousStepId() {
        return m_previousStepId;
    }
    public void setPreviousStepId (int previousStepId) {
        m_previousStepId = previousStepId;
    }
    
    public String getProductName() {
        return m_productName;
    }
    public void setProductName (String productName) {
        m_productName = productName;
    }
       
    public double getLotScrapYieldLimit() {
        return m_lotScrapYieldLimit;
    }
    public void setLotScrapYieldLimit (double limit) {
        m_lotScrapYieldLimit = limit;
    }
    
    public double getTargetYield() {
        return m_targetyield;
    }
    public void setTargetYield (double yield) {
        m_targetyield = yield;
    }
    
    public double getStandardUnitCost() {
        return m_standardUnitCost;
    }
    public void setStandardUnitCost (double cost) {
        m_standardUnitCost = cost;
    }

    public String getPoFrequency() {
        return m_poFrequency;
    }
    public void setPoFrequency (String freq) {
        m_poFrequency = freq;
    }
    
    public String getProcedureDocNumber() {
        return m_procedureDocNumber;
    }
    public void setProcedureDocNumber (String docNumber) {
        m_procedureDocNumber = docNumber;
    }
    
    public FormFile getProcedureDocFile() {
        return m_procedureDocFile;
    }
    public void setProcedureDocFile (FormFile file) {
        m_procedureDocFile = file;
    }
       
    public String getVisualSystem() {
        return m_visualSystem;
    }
    public void setVisualSystem (String system) {
        m_visualSystem = system;
    }
       
    public String getComments() {
        return m_comments;
    }
    public void setComments (String comments) {
        m_comments = comments;
    }
 
    public String getMarkingDiagramNumber() {
        return m_markingDiagramNumber;
    }
    public void setMarkingDiagramNumber (String markingDiagramNumber) {
        m_markingDiagramNumber = markingDiagramNumber;
    }
    
    public FormFile getMarkingDiagramFile() {
        return m_markingDiagramFile;
    }
    public void setMarkingDiagramFile (FormFile markingDiagramFile) {
        m_markingDiagramFile = markingDiagramFile;
    }
    
    public String getPackingMethod() {
        return m_packingMethod;
    }
    public void setPackingMethod (String packingMethod) {
        m_packingMethod = packingMethod;
    }

    // added by hareesh on 1st September 2003
    // -- START --
    public void setOldProductName(String oldProductName){
            this.m_oldProductName = oldProductName;
    }
    public String getOldProductName(){
            return m_oldProductName;
    }
    // -- END --
    /**
     * @return
     */
    public String[] getDupProductName()
    {
        return dupProductName;
    }

    /**
     * @param strings
     */
    public void setDupProductName(String[] strings)
    {
        dupProductName = strings;
    }

}